#include <stdio.h>

struct Table{
	char color[20];
	double price;
	};

struct Table read(void){
	struct Table t;
	printf("请输入颜色和价格\n");
	scanf("%s%lf",t.color,&t.price);
	return t;
	}
void write(struct Table* tb){
	printf("桌子的颜色是%s，价格为%lf\n",tb->color,tb->price);
	}
int main (){
		struct Table tt;
		tt = read();
		write(&tt);
	}
